<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>需求发布</title>
	<link href="{$smarty.const.HOME_CSS_URL}/CSS.css" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="{$smarty.const.HOME_CSS_URL}/style/weui.min.css"/>      
	<script src="{$smarty.const.HOME_JS_URL}/jquery.js"></script>
	<script src="{$smarty.const.HOME_JS_URL}/js.js" type="text/javascript"></script>
	<script src="{$smarty.const.HOME_JS_URL}/lrz/dist/lrz.bundle.js"></script>
</head>
<body class="body_box">

<div id="bgback" onClick="offrelease()"></div>
<!--信息分类  -->
<div class="publish_serve_box">
	<div class="msg_sort_box">
		<h1>信息类别</h1>
		<div class="msg_sort" id="msgsort">
			<li class="sort1" onClick="category(1)" id="sort1">智造中心</li>
			<li class="sort1"  onClick="category(2)" id="sort2">产品设计</li>
			<li class="sort1"  onClick="category(3)" id="sort3">技术研发</li>
			<li class="sort1" style="margin-right:0"  onClick="category(4)" id="sort4">检测认证</li>
			<li class="sort1"  onClick="category(5)" id="sort5">产品中试</li>
			<li class="sort1"  onClick="category(6)" id="sort6">推广营销</li>
			<li class="sort1"  onClick="category(7)" id="sort7">协同服务</li>
			<li class="sort1" style="margin-right:0"  onClick="category(8)" id="sort8">其他</li>
			<div class="clearfix"></div>
		</div>
		<input type="hidden" id='category' value="{$info.goods_sort}"/>
	</div>
	<div class="write_msg_box">
		
		<form action="{$smarty.const.__SELF__}" method="post" enctype="multipart/form-data" >
			
			<input type="hidden" id="goods_id" value="{$info.id}|default:'0'" />
			<div class="msg_title">
				<h1>标题</h1>
				<input type="text" id="title" name="title"   placeholder=""  onClick="check(this.id)" onChange="check(this.id)" value="{$info.goods_title}" />
			</div>
	         <div class="main_body">
				<h1>正文</h1>
			    <div class="weui_cells weui_cells_form">
        			<div class="">
           				<div class="weui_cell_primary num_position_box">
                <textarea class="weui_textarea " placeholder="" rows="3" id="memo"  onClick="check(this.id)" onChange="check(this.id)"   onKeyUp="lenthnum()">{$info.goods_intro}</textarea>
                		<div class="weui_textarea_counter num_position"><span id="zinumjia">0</span>/<span id="zinumjian">200</span></div>
            		</div>
       		 </div>
   		 </div>
    <div class="weui_toptips weui_warn js_tooltips">格式不对</div>
		 </div >
		 <div class="msg_price">
		 	<h1>价格</h1>
			<input    type="number" id="money"   placeholder="" onClick="check(this.id)" onChange="check(this.id)" value="{$info.price}"/>   
		 </div>
		 <div class="msg_tel">
		 	<h1>联系方式</h1>
			<div class="weui_cells">
				<div class="weui_cell weui_cell_select">
            		<div class="weui_cell_primary">
               	    	<input class="weui_input" type="number" pattern="[0-9]*" placeholder="" id="tel" onClick="check(this.id)" onChange="check(this.id)" value="{$info.tel|default:'无'}"/>
                    </div>
       	 		</div>
   			 </div>  
		 </div>
		 <div class="msg_linkman">
		 	<h1>联系人：</h1>
			<input    type="text" id="linkman"   placeholder="" onChange="check(this.id)" onfocus="checkTel()" value="{$info.linkman|default:''}"/>   
		 </div>
		 <div class="msg_photo">
		 	<h1>添加图片：</h1>
			<input type="hidden" id="goods_photo_input" value="{$info.goods_photo}"/>
	        <input type="hidden" id="goods_photo1_input"
	                   value="{$info.goods_photo1}"/>
	        <input type="hidden" id="goods_photo2_input"
	                   value="{$info.goods_photo2}"/>
			 <div style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative">
	            <img id="goods_photo_show" src="{$info.goods_photo|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%" alt="">
	            <input id="goods_photo" type="file" accept="image/*"
	                   style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
	        </div>
			  <div id="goods_photo1_bar"
	             style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative; {if $info.goods_photo1==null}display:none{/if}">
	            <img id="goods_photo_show1" src="{$info.goods_photo1|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%"
	                 alt="">
	            <input id="goods_photo1" type="file" accept="image/*"
	                   style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
	        </div>
	        <div id="goods_photo2_bar"
	             style="width: 44px; height: 44px; float: left; margin-right: 10%; position: relative; {if $info.goods_photo1==null}display:none{/if}">
	            <img id="goods_photo_show2" src="{$info.goods_photo2|default:'/zgc/Public/images/uploading.png'}" width="100%" height="100%"
	                 alt="">
	            <input id="goods_photo1" type="file" accept="image/*"
	                   style="opacity: 0; position: absolute; left: 0; width: 100%; height: 100%; border: 1px solid red;"/>
	        </div>
	    </div>	
	</form>
	</div>
	<div class="publish_submit" id="publish" onClick="release1()">保存</div>
	</div>

	<div class="popup_btn_box" id="popup_btn_box1">
		<div class="popup_content">是否保存</div>
		<div class="popup_content_ok">
			<span id="OK" onClick="submitOK11()">确定</span>
			<span id="NO" onClick="popup_no({$info.id})">取消</span>
		</div>
	</div>

</body>
</html>
<script type="text/javascript">
	var sort_id = $('#category').val();
	category(sort_id);
</script>